package com.think.admin.model.param.resource;

import com.think.common.convert.Convert;
import com.think.common.validation.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 资源：更新上级
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ResourceUpdateParentIdParam extends Convert {

    private static final long serialVersionUID = 1L;

    /**
     * 父级ID
     */
    @NotNull(groups = {Update.class}, message = "父级ID不能为空")
    private String parentId;

    /**
     * 修改的资源ID
     */
    @NotNull(groups = {Update.class}, message = "资源ID列表不能为空")
    private List<String> idList;
}
